package com.interview.pojo;

import org.apache.solr.client.solrj.beans.Field;

import javax.persistence.Id;
import java.io.Serializable;

public class Solr_Article implements Serializable {

    @Id
    @Field
    private  String id;

    @Field
    private String head;  //文章标题
    @Field
    private String url_params;   //文章地址

    @Field
    private String  type;   //文章地址


    @Field
    private String  time;   //文章地址

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getUrl_params() {
        return url_params;
    }

    public void setUrl_params(String url_params) {
        this.url_params = url_params;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Solr_Article{" +
                "id='" + id + '\'' +
                ", head='" + head + '\'' +
                ", url_params='" + url_params + '\'' +
                ", type='" + type + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
